import java.util.Scanner;

public class BMICalculator {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入身高（米）: ");
        double height = scanner.nextDouble();
        System.out.print("请输入体重（千克）: ");
        double weight = scanner.nextDouble();
        double bmi = weight / (height * height);
        System.out.println("你的 BMI 指数为: " + bmi);
    }
}